﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_SoDuDauKy : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("BtnAddRow")]
        private Button _BtnAddRow;
        [AccessedThroughProperty("BtnRemoveRow")]
        private Button _BtnRemoveRow;
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("C1DockingTabPage3")]
        private C1DockingTabPage _C1DockingTabPage3;
        [AccessedThroughProperty("CmdAddCongNo")]
        private Button _CmdAddCongNo;
        [AccessedThroughProperty("CmdAddRowTK")]
        private Button _CmdAddRowTK;
        [AccessedThroughProperty("CmdDelRowTK")]
        private Button _CmdDelRowTK;
        [AccessedThroughProperty("CmdRemoveCongNo")]
        private Button _CmdRemoveCongNo;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("Panel3")]
        private Panel _Panel3;
        [AccessedThroughProperty("Panel4")]
        private Panel _Panel4;
        [AccessedThroughProperty("Panel5")]
        private Panel _Panel5;
        [AccessedThroughProperty("Panel6")]
        private Panel _Panel6;
        [AccessedThroughProperty("TxtSoDuCoTS")]
        private C1NumericEdit _TxtSoDuCoTS;
        [AccessedThroughProperty("TxtSoDuNoTS")]
        private C1NumericEdit _TxtSoDuNoTS;
        [AccessedThroughProperty("TxtSoDuTK")]
        private C1NumericEdit _TxtSoDuTK;
        [AccessedThroughProperty("TxtSoDuTKNT")]
        private C1NumericEdit _TxtSoDuTKNT;
        [AccessedThroughProperty("TxtTongSoDuCoCongNo")]
        private C1NumericEdit _TxtTongSoDuCoCongNo;
        [AccessedThroughProperty("TxtTongSoDuNoCongNo")]
        private C1NumericEdit _TxtTongSoDuNoCongNo;
        [AccessedThroughProperty("VSCongNo")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSCongNo;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        [AccessedThroughProperty("VSTaiSan")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSTaiSan;
        public bool bLoaded;
        private DataView cFrmData;
        private string cFrmFormat;
        public string cFrmKhoa;
        public string cFrmNamThang;
        private IContainer components;
        private bool IsLoaded;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsSoDuDauKyHangHoa objSDDKHH;
        private ClsSoDuDauKyTaiKhoan objSDDKTK;
        private clsSoDuDauKyTaiSan objSDDKTS;

        public Frm_SoDuDauKy()
        {
            base.FormClosing += new FormClosingEventHandler(this.Frm_SoDuDauKy_FormClosing);
            base.KeyDown += new KeyEventHandler(this.Frm_SoDuDauKy_KeyDown);
            base.Load += new EventHandler(this.Frm_SoDuDauKy_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objSDDKTK = new ClsSoDuDauKyTaiKhoan();
            this.objSDDKHH = new clsSoDuDauKyHangHoa();
            this.objSDDKTS = new clsSoDuDauKyTaiSan();
            this.cFrmKhoa = "";
            this.cFrmNamThang = "";
            this.bLoaded = false;
            this.IsLoaded = false;
            this.InitializeComponent();
        }

        private void BtnAddRow_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_SoDuDauKyTaiSan.cFrmNamThang = this.cFrmNamThang;
            MyProject.Forms.Frm_SoDuDauKyTaiSan.cFrmKhoa = "";
            MyProject.Forms.Frm_SoDuDauKyTaiSan.ShowDialog();
            this.LoadDataTaiSan();
        }

        private void BtnRemoveRow_Click(object sender, EventArgs e)
        {
            if (((this.VSTaiSan.Rows.Count != 1) && (this.VSTaiSan.Row > 0)) && (LVYModule.ConfirmDelete(modGeneral.Tranlated("Bạn thật sự muốn x\x00f3a d\x00f2ng dữ liệu n\x00e0y?", "")) && this.objSDDKTS.DelData(Conversions.ToString(this.VSTaiSan[this.VSTaiSan.Row, 0]))))
            {
                this.VSTaiSan.RemoveItem(this.VSTaiSan.Row);
                this.LoadDataTaiSan();
            }
        }

        private void CmdAddCongNo_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_SoDuDauKyCongNo.cFrmKhoa = "";
            MyProject.Forms.Frm_SoDuDauKyCongNo.cFrmNamThang = this.cFrmNamThang;
            MyProject.Forms.Frm_SoDuDauKyCongNo.ShowDialog();
            this.LoadDataCongNo();
        }

        private void CmdAddRowTK_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_CapNhatSoDuDauKyTaiKhoan.cFrmKhoa = "";
            MyProject.Forms.Frm_CapNhatSoDuDauKyTaiKhoan.cFrmNamThang = this.cFrmNamThang;
            MyProject.Forms.Frm_CapNhatSoDuDauKyTaiKhoan.ShowDialog();
            this.LoadDataTaiKhoan();
        }

        private void CmdDelRowTK_Click(object sender, EventArgs e)
        {
            if (((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0)) && (LVYModule.ConfirmDelete(modGeneral.Tranlated("Bạn thật sự muốn x\x00f3a d\x00f2ng dữ liệu n\x00e0y?", "")) && this.objSDDKTK.DelData(Conversions.ToString(this.VSlist[this.VSlist.Row, 0]))))
            {
                this.VSlist.RemoveItem(this.VSlist.Row);
            }
        }

        private void CmdRemoveCongNo_Click(object sender, EventArgs e)
        {
            if (((this.VSCongNo.Rows.Count != 1) && (this.VSCongNo.Row > 0)) && (LVYModule.ConfirmDelete(modGeneral.Tranlated("Bạn thật sự muốn x\x00f3a d\x00f2ng dữ liệu n\x00e0y?", "")) && this.objSDDKTK.DelData(Conversions.ToString(this.VSCongNo[this.VSCongNo.Row, 0]))))
            {
                this.VSCongNo.RemoveItem(this.VSCongNo.Row);
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void FormatNumber()
        {
            LVYModule.advFormatNumber(this.TxtSoDuTK, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtSoDuTKNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtSoDuNoTS, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtSoDuCoTS, this.cFrmFormat);
        }

        private void Frm_SoDuDauKy_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.cFrmNamThang = "";
        }

        private void Frm_SoDuDauKy_KeyDown(object sender, KeyEventArgs e)
        {
            switch (((int) e.KeyCode))
            {
                case 0x71:
                    if (this.C1DockingTabPage1.IsSelected)
                    {
                    }
                    break;

                case 0x75:
                    this.C1DockingTabPage1.Show();
                    break;

                case 0x76:
                    this.C1DockingTabPage2.Show();
                    break;
            }
        }

        private void Frm_SoDuDauKy_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.cFrmNamThang = LVYModule.sLeft(modGeneral.H_FIRSTDAY, 6);
                if (this.cFrmNamThang.Trim() == "")
                {
                    this.cFrmNamThang = SearchModule.GetNamThang("");
                }
                if (this.cFrmNamThang.Trim() == "")
                {
                    this.Dispose();
                }
                else
                {
                    modGeneral.H_FIRSTDAY = this.cFrmNamThang + "01";
                    this.Text = this.Text + " | " + modGeneral.Tranlated("THANG", "") + " " + LVYModule.sRight(this.cFrmNamThang, 2) + " " + modGeneral.Tranlated("NAM", "") + " " + LVYModule.sLeft(this.cFrmNamThang, 4);
                    this.CmdAddCongNo.Enabled = this.mAllowAdd;
                    this.CmdRemoveCongNo.Enabled = this.mAllowDel;
                    this.CmdDelRowTK.Enabled = this.mAllowAdd;
                    this.CmdAddRowTK.Enabled = this.mAllowDel;
                    this.IsLoaded = false;
                    this.cFrmFormat = modGeneral.H_FORMATNUMBER;
                    this.IsLoaded = true;
                    this.LoadDataTaiKhoan();
                    this.LoadDataCongNo();
                    this.LoadDataTaiSan();
                    this.C1DockingTabPage1.Show();
                }
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_SoDuDauKy));
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.Panel2 = new Panel();
            this.CmdDelRowTK = new Button();
            this.CmdAddRowTK = new Button();
            this.Panel4 = new Panel();
            this.TxtSoDuTK = new C1NumericEdit();
            this.TxtSoDuTKNT = new C1NumericEdit();
            this.Label1 = new Label();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.VSCongNo = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel1 = new Panel();
            this.CmdRemoveCongNo = new Button();
            this.CmdAddCongNo = new Button();
            this.Panel6 = new Panel();
            this.TxtTongSoDuCoCongNo = new C1NumericEdit();
            this.TxtTongSoDuNoCongNo = new C1NumericEdit();
            this.Label2 = new Label();
            this.C1DockingTabPage3 = new C1DockingTabPage();
            this.VSTaiSan = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel3 = new Panel();
            this.BtnRemoveRow = new Button();
            this.BtnAddRow = new Button();
            this.Panel5 = new Panel();
            this.TxtSoDuCoTS = new C1NumericEdit();
            this.TxtSoDuNoTS = new C1NumericEdit();
            this.Label3 = new Label();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            this.Panel2.SuspendLayout();
            this.Panel4.SuspendLayout();
            ((ISupportInitialize) this.TxtSoDuTK).BeginInit();
            ((ISupportInitialize) this.TxtSoDuTKNT).BeginInit();
            this.VSlist.BeginInit();
            this.C1DockingTabPage2.SuspendLayout();
            this.VSCongNo.BeginInit();
            this.Panel1.SuspendLayout();
            this.Panel6.SuspendLayout();
            ((ISupportInitialize) this.TxtTongSoDuCoCongNo).BeginInit();
            ((ISupportInitialize) this.TxtTongSoDuNoCongNo).BeginInit();
            this.C1DockingTabPage3.SuspendLayout();
            this.VSTaiSan.BeginInit();
            this.Panel3.SuspendLayout();
            this.Panel5.SuspendLayout();
            ((ISupportInitialize) this.TxtSoDuCoTS).BeginInit();
            ((ISupportInitialize) this.TxtSoDuNoTS).BeginInit();
            this.SuspendLayout();
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage2);
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage3);
            this.C1DockingTab1.Dock = DockStyle.Fill;
            Point point = new Point(0, 0);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            this.C1DockingTab1.SelectedIndex = 2;
            Size size = new Size(0x37e, 0x239);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 1;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.Panel2);
            this.C1DockingTabPage1.Controls.Add(this.VSlist);
            this.C1DockingTabPage1.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x37c, 0x21f);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "F6. Số dư t\x00e0i khoản";
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.Controls.Add(this.CmdDelRowTK);
            this.Panel2.Controls.Add(this.CmdAddRowTK);
            this.Panel2.Controls.Add(this.Panel4);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(0, 0x202);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x37c, 0x1d);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x19;
            this.CmdDelRowTK.Image = (Image) manager.GetObject("CmdDelRowTK.Image");
            this.CmdDelRowTK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x66, 3);
            this.CmdDelRowTK.Location = point;
            this.CmdDelRowTK.Name = "CmdDelRowTK";
            size = new Size(0x59, 0x18);
            this.CmdDelRowTK.Size = size;
            this.CmdDelRowTK.TabIndex = 13;
            this.CmdDelRowTK.Text = "&2.X\x00f3a d\x00f2ng";
            this.CmdDelRowTK.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdDelRowTK.UseVisualStyleBackColor = true;
            this.CmdAddRowTK.Image = (Image) manager.GetObject("CmdAddRowTK.Image");
            this.CmdAddRowTK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(5, 3);
            this.CmdAddRowTK.Location = point;
            this.CmdAddRowTK.Name = "CmdAddRowTK";
            size = new Size(0x5c, 0x18);
            this.CmdAddRowTK.Size = size;
            this.CmdAddRowTK.TabIndex = 12;
            this.CmdAddRowTK.Text = "&1.Th\x00eam d\x00f2ng";
            this.CmdAddRowTK.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddRowTK.UseVisualStyleBackColor = true;
            this.Panel4.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel4.Controls.Add(this.TxtSoDuTK);
            this.Panel4.Controls.Add(this.TxtSoDuTKNT);
            this.Panel4.Controls.Add(this.Label1);
            this.Panel4.Dock = DockStyle.Right;
            point = new Point(0x245, 0);
            this.Panel4.Location = point;
            this.Panel4.Name = "Panel4";
            size = new Size(0x137, 0x1d);
            this.Panel4.Size = size;
            this.Panel4.TabIndex = 1;
            this.TxtSoDuTK.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoDuTK.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0xce, 5);
            this.TxtSoDuTK.Location = point;
            this.TxtSoDuTK.Name = "TxtSoDuTK";
            Padding padding = new Padding(1);
            this.TxtSoDuTK.Padding = padding;
            this.TxtSoDuTK.ReadOnly = true;
            size = new Size(0x66, 20);
            this.TxtSoDuTK.Size = size;
            this.TxtSoDuTK.TabIndex = 0x58;
            this.TxtSoDuTK.Tag = null;
            this.TxtSoDuTK.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuTK.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoDuTK.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuTK.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuTKNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoDuTKNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x66, 5);
            this.TxtSoDuTKNT.Location = point;
            this.TxtSoDuTKNT.Name = "TxtSoDuTKNT";
            padding = new Padding(1);
            this.TxtSoDuTKNT.Padding = padding;
            this.TxtSoDuTKNT.ReadOnly = true;
            size = new Size(0x65, 20);
            this.TxtSoDuTKNT.Size = size;
            this.TxtSoDuTKNT.TabIndex = 0x57;
            this.TxtSoDuTKNT.Tag = null;
            this.TxtSoDuTKNT.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuTKNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoDuTKNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuTKNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label1.AutoEllipsis = true;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            this.Label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(10, 9);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            this.Label1.RightToLeft = RightToLeft.No;
            size = new Size(0x44, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x4f;
            this.Label1.Text = "Tổng cộng";
            this.Label1.TextAlign = ContentAlignment.TopRight;
            this.VSlist.AllowEditing = false;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.FocusRect = FocusRectEnum.None;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x37c, 0x21f);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0x18;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.C1DockingTabPage2.Controls.Add(this.VSCongNo);
            this.C1DockingTabPage2.Controls.Add(this.Panel1);
            this.C1DockingTabPage2.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(0x37c, 0x21f);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 1;
            this.C1DockingTabPage2.Text = "F7. Số dư c\x00f4ng nợ";
            this.VSCongNo.AllowEditing = false;
            this.VSCongNo.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSCongNo.ColumnInfo = manager.GetString("VSCongNo.ColumnInfo");
            this.VSCongNo.Dock = DockStyle.Fill;
            this.VSCongNo.ExtendLastCol = true;
            this.VSCongNo.FocusRect = FocusRectEnum.None;
            this.VSCongNo.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSCongNo.Location = point;
            this.VSCongNo.Name = "VSCongNo";
            this.VSCongNo.Rows.Count = 1;
            this.VSCongNo.Rows.DefaultSize = 0x11;
            this.VSCongNo.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x37c, 0x202);
            this.VSCongNo.Size = size;
            this.VSCongNo.StyleInfo = manager.GetString("VSCongNo.StyleInfo");
            this.VSCongNo.TabIndex = 0x19;
            this.Panel1.BackgroundImage = (Image) manager.GetObject("Panel1.BackgroundImage");
            this.Panel1.Controls.Add(this.CmdRemoveCongNo);
            this.Panel1.Controls.Add(this.CmdAddCongNo);
            this.Panel1.Controls.Add(this.Panel6);
            this.Panel1.Dock = DockStyle.Bottom;
            point = new Point(0, 0x202);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x37c, 0x1d);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x1a;
            this.CmdRemoveCongNo.Image = (Image) manager.GetObject("CmdRemoveCongNo.Image");
            this.CmdRemoveCongNo.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x66, 3);
            this.CmdRemoveCongNo.Location = point;
            this.CmdRemoveCongNo.Name = "CmdRemoveCongNo";
            size = new Size(0x59, 0x18);
            this.CmdRemoveCongNo.Size = size;
            this.CmdRemoveCongNo.TabIndex = 13;
            this.CmdRemoveCongNo.Text = "&2.X\x00f3a d\x00f2ng";
            this.CmdRemoveCongNo.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdRemoveCongNo.UseVisualStyleBackColor = true;
            this.CmdAddCongNo.Image = (Image) manager.GetObject("CmdAddCongNo.Image");
            this.CmdAddCongNo.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(5, 3);
            this.CmdAddCongNo.Location = point;
            this.CmdAddCongNo.Name = "CmdAddCongNo";
            size = new Size(0x5c, 0x18);
            this.CmdAddCongNo.Size = size;
            this.CmdAddCongNo.TabIndex = 12;
            this.CmdAddCongNo.Text = "&1.Th\x00eam d\x00f2ng";
            this.CmdAddCongNo.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddCongNo.UseVisualStyleBackColor = true;
            this.Panel6.BackgroundImage = (Image) manager.GetObject("Panel6.BackgroundImage");
            this.Panel6.Controls.Add(this.TxtTongSoDuCoCongNo);
            this.Panel6.Controls.Add(this.TxtTongSoDuNoCongNo);
            this.Panel6.Controls.Add(this.Label2);
            this.Panel6.Dock = DockStyle.Right;
            point = new Point(0x245, 0);
            this.Panel6.Location = point;
            this.Panel6.Name = "Panel6";
            size = new Size(0x137, 0x1d);
            this.Panel6.Size = size;
            this.Panel6.TabIndex = 1;
            this.TxtTongSoDuCoCongNo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongSoDuCoCongNo.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0xce, 5);
            this.TxtTongSoDuCoCongNo.Location = point;
            this.TxtTongSoDuCoCongNo.Name = "TxtTongSoDuCoCongNo";
            padding = new Padding(1);
            this.TxtTongSoDuCoCongNo.Padding = padding;
            this.TxtTongSoDuCoCongNo.ReadOnly = true;
            size = new Size(0x66, 20);
            this.TxtTongSoDuCoCongNo.Size = size;
            this.TxtTongSoDuCoCongNo.TabIndex = 0x58;
            this.TxtTongSoDuCoCongNo.Tag = null;
            this.TxtTongSoDuCoCongNo.TextAlign = HorizontalAlignment.Right;
            this.TxtTongSoDuCoCongNo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongSoDuCoCongNo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongSoDuCoCongNo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongSoDuNoCongNo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongSoDuNoCongNo.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x66, 5);
            this.TxtTongSoDuNoCongNo.Location = point;
            this.TxtTongSoDuNoCongNo.Name = "TxtTongSoDuNoCongNo";
            padding = new Padding(1);
            this.TxtTongSoDuNoCongNo.Padding = padding;
            this.TxtTongSoDuNoCongNo.ReadOnly = true;
            size = new Size(0x65, 20);
            this.TxtTongSoDuNoCongNo.Size = size;
            this.TxtTongSoDuNoCongNo.TabIndex = 0x57;
            this.TxtTongSoDuNoCongNo.Tag = null;
            this.TxtTongSoDuNoCongNo.TextAlign = HorizontalAlignment.Right;
            this.TxtTongSoDuNoCongNo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongSoDuNoCongNo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongSoDuNoCongNo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label2.AutoEllipsis = true;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            this.Label2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(10, 9);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            this.Label2.RightToLeft = RightToLeft.No;
            size = new Size(0x44, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x4f;
            this.Label2.Text = "Tổng cộng";
            this.Label2.TextAlign = ContentAlignment.TopRight;
            this.C1DockingTabPage3.Controls.Add(this.VSTaiSan);
            this.C1DockingTabPage3.Controls.Add(this.Panel3);
            this.C1DockingTabPage3.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage3.Location = point;
            this.C1DockingTabPage3.Name = "C1DockingTabPage3";
            size = new Size(0x37c, 0x21f);
            this.C1DockingTabPage3.Size = size;
            this.C1DockingTabPage3.TabIndex = 2;
            this.C1DockingTabPage3.Text = "Số dư t\x00e0i sản";
            this.VSTaiSan.AllowEditing = false;
            this.VSTaiSan.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSTaiSan.ColumnInfo = manager.GetString("VSTaiSan.ColumnInfo");
            this.VSTaiSan.Dock = DockStyle.Fill;
            this.VSTaiSan.ExtendLastCol = true;
            this.VSTaiSan.FocusRect = FocusRectEnum.None;
            this.VSTaiSan.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSTaiSan.Location = point;
            this.VSTaiSan.Name = "VSTaiSan";
            this.VSTaiSan.Rows.Count = 1;
            this.VSTaiSan.Rows.DefaultSize = 0x11;
            this.VSTaiSan.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x37c, 0x202);
            this.VSTaiSan.Size = size;
            this.VSTaiSan.StyleInfo = manager.GetString("VSTaiSan.StyleInfo");
            this.VSTaiSan.TabIndex = 0x1b;
            this.Panel3.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel3.Controls.Add(this.BtnRemoveRow);
            this.Panel3.Controls.Add(this.BtnAddRow);
            this.Panel3.Controls.Add(this.Panel5);
            this.Panel3.Dock = DockStyle.Bottom;
            point = new Point(0, 0x202);
            this.Panel3.Location = point;
            this.Panel3.Name = "Panel3";
            size = new Size(0x37c, 0x1d);
            this.Panel3.Size = size;
            this.Panel3.TabIndex = 0x1a;
            this.BtnRemoveRow.Image = (Image) manager.GetObject("BtnRemoveRow.Image");
            this.BtnRemoveRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x66, 3);
            this.BtnRemoveRow.Location = point;
            this.BtnRemoveRow.Name = "BtnRemoveRow";
            size = new Size(0x59, 0x18);
            this.BtnRemoveRow.Size = size;
            this.BtnRemoveRow.TabIndex = 13;
            this.BtnRemoveRow.Text = "&2.X\x00f3a d\x00f2ng";
            this.BtnRemoveRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.BtnRemoveRow.UseVisualStyleBackColor = true;
            this.BtnAddRow.Image = (Image) manager.GetObject("BtnAddRow.Image");
            this.BtnAddRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(5, 3);
            this.BtnAddRow.Location = point;
            this.BtnAddRow.Name = "BtnAddRow";
            size = new Size(0x5c, 0x18);
            this.BtnAddRow.Size = size;
            this.BtnAddRow.TabIndex = 12;
            this.BtnAddRow.Text = "&1.Th\x00eam d\x00f2ng";
            this.BtnAddRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.BtnAddRow.UseVisualStyleBackColor = true;
            this.Panel5.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel5.Controls.Add(this.TxtSoDuCoTS);
            this.Panel5.Controls.Add(this.TxtSoDuNoTS);
            this.Panel5.Controls.Add(this.Label3);
            this.Panel5.Dock = DockStyle.Right;
            point = new Point(0x245, 0);
            this.Panel5.Location = point;
            this.Panel5.Name = "Panel5";
            size = new Size(0x137, 0x1d);
            this.Panel5.Size = size;
            this.Panel5.TabIndex = 1;
            this.TxtSoDuCoTS.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoDuCoTS.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0xce, 5);
            this.TxtSoDuCoTS.Location = point;
            this.TxtSoDuCoTS.Name = "TxtSoDuCoTS";
            padding = new Padding(1);
            this.TxtSoDuCoTS.Padding = padding;
            this.TxtSoDuCoTS.ReadOnly = true;
            size = new Size(0x66, 20);
            this.TxtSoDuCoTS.Size = size;
            this.TxtSoDuCoTS.TabIndex = 0x58;
            this.TxtSoDuCoTS.Tag = null;
            this.TxtSoDuCoTS.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuCoTS.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoDuCoTS.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuCoTS.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuNoTS.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoDuNoTS.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x66, 5);
            this.TxtSoDuNoTS.Location = point;
            this.TxtSoDuNoTS.Name = "TxtSoDuNoTS";
            padding = new Padding(1);
            this.TxtSoDuNoTS.Padding = padding;
            this.TxtSoDuNoTS.ReadOnly = true;
            size = new Size(0x65, 20);
            this.TxtSoDuNoTS.Size = size;
            this.TxtSoDuNoTS.TabIndex = 0x57;
            this.TxtSoDuNoTS.Tag = null;
            this.TxtSoDuNoTS.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuNoTS.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoDuNoTS.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuNoTS.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label3.AutoEllipsis = true;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            this.Label3.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(10, 9);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            this.Label3.RightToLeft = RightToLeft.No;
            size = new Size(0x44, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x4f;
            this.Label3.Text = "Tổng cộng";
            this.Label3.TextAlign = ContentAlignment.TopRight;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.bg;
            size = new Size(0x37e, 0x239);
            this.ClientSize = size;
            this.Controls.Add(this.C1DockingTab1);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.KeyPreview = true;
            this.MinimizeBox = false;
            this.Name = "Frm_SoDuDauKy";
            this.ShowIcon = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "TH-0006             ";
            this.Text = "CAP NHAT SO DU DAU KY";
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.Panel2.ResumeLayout(false);
            this.Panel4.ResumeLayout(false);
            this.Panel4.PerformLayout();
            ((ISupportInitialize) this.TxtSoDuTK).EndInit();
            ((ISupportInitialize) this.TxtSoDuTKNT).EndInit();
            this.VSlist.EndInit();
            this.C1DockingTabPage2.ResumeLayout(false);
            this.VSCongNo.EndInit();
            this.Panel1.ResumeLayout(false);
            this.Panel6.ResumeLayout(false);
            this.Panel6.PerformLayout();
            ((ISupportInitialize) this.TxtTongSoDuCoCongNo).EndInit();
            ((ISupportInitialize) this.TxtTongSoDuNoCongNo).EndInit();
            this.C1DockingTabPage3.ResumeLayout(false);
            this.VSTaiSan.EndInit();
            this.Panel3.ResumeLayout(false);
            this.Panel5.ResumeLayout(false);
            this.Panel5.PerformLayout();
            ((ISupportInitialize) this.TxtSoDuCoTS).EndInit();
            ((ISupportInitialize) this.TxtSoDuNoTS).EndInit();
            this.ResumeLayout(false);
        }

        public void LoadDataCongNo()
        {
            this.VSCongNo.Rows.Count = 1;
            DataTable list = this.objSDDKTK.GetList(this.cFrmNamThang, "CN");
            if ((list != null) && (list.Rows.Count != 0))
            {
                C1.Win.C1FlexGrid.C1FlexGrid vSCongNo = this.VSCongNo;
                int num2 = list.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    vSCongNo.AddItem("");
                    vSCongNo[vSCongNo.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(list.Rows[i]["Khoa"]);
                    vSCongNo[vSCongNo.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SoTaiKhoan"]);
                    vSCongNo[vSCongNo.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(list.Rows[i]["DoiTuong"]);
                    vSCongNo[vSCongNo.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(list.Rows[i]["BoPhan"]);
                    vSCongNo[vSCongNo.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SanPham"]);
                    vSCongNo[vSCongNo.Rows.Count - 1, 10] = RuntimeHelpers.GetObjectValue(list.Rows[i]["HopDong"]);
                    vSCongNo[vSCongNo.Rows.Count - 1, 11] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SoDuNoNT"]);
                    vSCongNo[vSCongNo.Rows.Count - 1, 12] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SoDuCoNT"]);
                }
                vSCongNo = null;
                this.TotalOfCongNo();
                this.FormatNumber();
            }
        }

        public void LoadDataTaiKhoan()
        {
            this.VSlist.Rows.Count = 1;
            DataTable list = this.objSDDKTK.GetList(this.cFrmNamThang, "TK");
            if ((list != null) && (list.Rows.Count != 0))
            {
                int num2 = list.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                    vSlist.AddItem("");
                    vSlist[vSlist.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(list.Rows[i]["Khoa"]);
                    vSlist[vSlist.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SoTaiKhoan"]);
                    vSlist[vSlist.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(list.Rows[i]["DoiTuong"]);
                    vSlist[vSlist.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(list.Rows[i]["BoPhan"]);
                    vSlist[vSlist.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SanPham"]);
                    vSlist[vSlist.Rows.Count - 1, 10] = RuntimeHelpers.GetObjectValue(list.Rows[i]["HopDong"]);
                    vSlist[vSlist.Rows.Count - 1, 11] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SoDuNoNT"]);
                    vSlist[vSlist.Rows.Count - 1, 12] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SoDuCoNT"]);
                    vSlist = null;
                }
                this.TotalOfVoucher();
                this.FormatNumber();
            }
        }

        public void LoadDataTaiSan()
        {
            this.VSTaiSan.Rows.Count = 1;
            DataTable list = this.objSDDKTS.GetList(this.cFrmNamThang);
            if ((list != null) && (list.Rows.Count != 0))
            {
                int num2 = list.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    C1.Win.C1FlexGrid.C1FlexGrid vSTaiSan = this.VSTaiSan;
                    vSTaiSan.AddItem("");
                    vSTaiSan[vSTaiSan.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(list.Rows[i]["KHOA"]);
                    vSTaiSan[vSTaiSan.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(list.Rows[i]["KHOATK"]);
                    vSTaiSan[vSTaiSan.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(list.Rows[i]["TENTK"]);
                    vSTaiSan[vSTaiSan.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(list.Rows[i]["KHOADT"]);
                    vSTaiSan[vSTaiSan.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(list.Rows[i]["TENDT"]);
                    vSTaiSan[vSTaiSan.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SODUNO"]);
                    vSTaiSan[vSTaiSan.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SODUCO"]);
                    vSTaiSan = null;
                }
                this.TotalTaiSan();
                this.FormatNumber();
            }
        }

        public void TotalOfCongNo()
        {
            double num2 = LVYModule.SumColGrid(this.VSCongNo, 11);
            double num = LVYModule.SumColGrid(this.VSCongNo, 12);
            this.TxtTongSoDuNoCongNo.Value = num2;
            this.TxtTongSoDuCoCongNo.Value = num;
        }

        public void TotalOfVoucher()
        {
            double num2 = LVYModule.SumColGrid(this.VSlist, 11);
            double num = LVYModule.SumColGrid(this.VSlist, 12);
            this.TxtSoDuTKNT.Value = num2;
            this.TxtSoDuTK.Value = num;
        }

        public void TotalTaiSan()
        {
            double num2 = LVYModule.SumColGrid(this.VSTaiSan, 5);
            double num = LVYModule.SumColGrid(this.VSTaiSan, 6);
            this.TxtSoDuNoTS.Value = num2;
            this.TxtSoDuCoTS.Value = num;
        }

        private void VSCongNo_DoubleClick(object sender, EventArgs e)
        {
            if ((this.VSCongNo.Rows.Count != 1) && (this.VSCongNo.Row > 0))
            {
                MyProject.Forms.Frm_SoDuDauKyCongNo.cFrmKhoa = Conversions.ToString(this.VSCongNo[this.VSCongNo.Row, 0]);
                MyProject.Forms.Frm_SoDuDauKyCongNo.ShowDialog();
                this.LoadDataCongNo();
            }
        }

        private void VSHangHoa_AfterEdit(object sender, RowColEventArgs e)
        {
        }

        private void VSHangHoa_BeforeEdit(object sender, RowColEventArgs e)
        {
            if ((((e.Col != 6) & (e.Col != 13)) & (e.Col != 14)) & (e.Col != 15))
            {
                e.Cancel = true;
            }
        }

        private void VSlist_DoubleClick(object sender, EventArgs e)
        {
            if ((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0))
            {
                MyProject.Forms.Frm_CapNhatSoDuDauKyTaiKhoan.cFrmKhoa = Conversions.ToString(this.VSlist[this.VSlist.Row, 0]);
                MyProject.Forms.Frm_CapNhatSoDuDauKyTaiKhoan.ShowDialog();
            }
        }

        internal virtual Button BtnAddRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._BtnAddRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.BtnAddRow_Click);
                if (this._BtnAddRow != null)
                {
                    this._BtnAddRow.Click -= handler;
                }
                this._BtnAddRow = value;
                if (this._BtnAddRow != null)
                {
                    this._BtnAddRow.Click += handler;
                }
            }
        }

        internal virtual Button BtnRemoveRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._BtnRemoveRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.BtnRemoveRow_Click);
                if (this._BtnRemoveRow != null)
                {
                    this._BtnRemoveRow.Click -= handler;
                }
                this._BtnRemoveRow = value;
                if (this._BtnRemoveRow != null)
                {
                    this._BtnRemoveRow.Click += handler;
                }
            }
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage3 = value;
            }
        }

        internal virtual Button CmdAddCongNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddCongNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddCongNo_Click);
                if (this._CmdAddCongNo != null)
                {
                    this._CmdAddCongNo.Click -= handler;
                }
                this._CmdAddCongNo = value;
                if (this._CmdAddCongNo != null)
                {
                    this._CmdAddCongNo.Click += handler;
                }
            }
        }

        internal virtual Button CmdAddRowTK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddRowTK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddRowTK_Click);
                if (this._CmdAddRowTK != null)
                {
                    this._CmdAddRowTK.Click -= handler;
                }
                this._CmdAddRowTK = value;
                if (this._CmdAddRowTK != null)
                {
                    this._CmdAddRowTK.Click += handler;
                }
            }
        }

        internal virtual Button CmdDelRowTK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelRowTK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDelRowTK_Click);
                if (this._CmdDelRowTK != null)
                {
                    this._CmdDelRowTK.Click -= handler;
                }
                this._CmdDelRowTK = value;
                if (this._CmdDelRowTK != null)
                {
                    this._CmdDelRowTK.Click += handler;
                }
            }
        }

        internal virtual Button CmdRemoveCongNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdRemoveCongNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdRemoveCongNo_Click);
                if (this._CmdRemoveCongNo != null)
                {
                    this._CmdRemoveCongNo.Click -= handler;
                }
                this._CmdRemoveCongNo = value;
                if (this._CmdRemoveCongNo != null)
                {
                    this._CmdRemoveCongNo.Click += handler;
                }
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual Panel Panel3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel3 = value;
            }
        }

        internal virtual Panel Panel4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel4 = value;
            }
        }

        internal virtual Panel Panel5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel5 = value;
            }
        }

        internal virtual Panel Panel6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel6 = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuCoTS
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuCoTS;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuCoTS = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuNoTS
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuNoTS;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuNoTS = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuTK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuTK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuTK = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuTKNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuTKNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuTKNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTongSoDuCoCongNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongSoDuCoCongNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongSoDuCoCongNo = value;
            }
        }

        internal virtual C1NumericEdit TxtTongSoDuNoCongNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongSoDuNoCongNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongSoDuNoCongNo = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSCongNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSCongNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.VSCongNo_DoubleClick);
                if (this._VSCongNo != null)
                {
                    this._VSCongNo.DoubleClick -= handler;
                }
                this._VSCongNo = value;
                if (this._VSCongNo != null)
                {
                    this._VSCongNo.DoubleClick += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.VSlist_DoubleClick);
                if (this._VSlist != null)
                {
                    this._VSlist.DoubleClick -= handler;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.DoubleClick += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSTaiSan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSTaiSan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSTaiSan = value;
            }
        }
    }
}

